﻿using Common.Enum;

namespace Entity.Finance.View.IncomeRefund
{
    /// <summary>
    /// 应收退款单视图
    /// </summary>
    public class IncomeRefundView
    {
        /// <summary>
        /// 应收退款单 ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 应收对账子单 ID
        /// </summary>
        public string IncomeAccountId { get; set; }

        /// <summary>
        /// 应收对账单 ID
        /// </summary>
        public string IncomeAccountItemId { get; set; }

        /// <summary>
        /// 客户 ID
        /// </summary>
        public string CustomerId { get; set; }

        /// <summary>
        /// 客户编码
        /// </summary>
        public string? CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string? CustomerName { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 退款状态
        /// </summary>
        public StateEnum.RefundType Status { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 待退款金额
        /// </summary>
        public decimal RefundToDo { get; set; }

        /// <summary>
        /// 已退款金额
        /// </summary>
        public decimal? RefundDone { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? File { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
